﻿<UserControl
    x:Class="WPClient.View.InfoElementControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WPClient.View"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:converters="using:WPClient.View.Converters"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    <UserControl.Resources>
        <converters:VisibilityConverter x:Key="VisibilityConverter"/>
    </UserControl.Resources>
    <Grid>
        <StackPanel Margin="0,0,0,9.5">
            <TextBlock
                Text="{Binding Title}"
                Pivot.SlideInAnimationGroup="1"
                CommonNavigationTransitionInfo.IsStaggerElement="True"
                Style="{StaticResource ListViewItemTextBlockStyle}"/>
            <TextBlock
                Text="{Binding Description}"
                TextWrapping="WrapWholeWords"
                Pivot.SlideInAnimationGroup="2"
                CommonNavigationTransitionInfo.IsStaggerElement="True"
                Style="{ThemeResource ListViewItemContentTextBlockStyle}"
                Margin="0,0,19,0"/>
            <StackPanel Orientation="Horizontal" Margin="15,0,0,0" Visibility="{Binding IsUsefulVotable, Converter={StaticResource VisibilityConverter}}">
                <TextBlock Margin="10,0" Text="Quest'informazione è utile?" Style="{StaticResource ListViewItemContentTextBlockStyle}"/>
                <TextBlock Margin="10,0" Text="Sì" Style="{StaticResource ListViewItemContentTextBlockStyle}" />
                <TextBlock Margin="10,0" Text="No" Style="{StaticResource ListViewItemContentTextBlockStyle}"/>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>
